import qs from 'qs'
import { request } from '@/utils/httpUtil'

// const BASE_API = process.env.VUE_APP_TABLE_API
const BASE_API = process.env.VUE_APP_MOCK_API

enum Api {
  MOVIE = '/graph/chart/movie',
}

/**
 * 查询列表
 * @param modelName 模型名称
 * @param param
 * @returns
 */
export function movieApi(id: string) {
  return request({
    url: BASE_API + Api.MOVIE,
    method: 'GET',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    data: qs.stringify({ id }),
  })
}
